﻿<phone:PhoneApplicationPage 
    x:Class="KeyDoor.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False" GotFocus="PhoneApplicationPage_GotFocus" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <!--Panorama control-->
        <controls:Panorama Title=" ">
            <controls:Panorama.Background>
                <ImageBrush ImageSource="PanoramaBackground.png"/>
            </controls:Panorama.Background>
 
            <!--Panorama item one-->
            <controls:PanoramaItem Header="search">
                <StackPanel Margin="0,0,0,0">
                    <TextBox Name="txtPostcode" Text="Enter your postcode" Width="340" HorizontalAlignment="Left" ManipulationStarted="txtPostcode_ManipulationStarted" />
                    <Button Name="btnPostcodeSearch" Margin="335,-77,0,-6" Click="btnPostcodeSearch_Click"/>
                    <ListBox Name="lstBoxRecents" Height="426" SelectionChanged="lstBoxRecents_SelectionChanged">
                        
                    </ListBox>
                </StackPanel>
            </controls:PanoramaItem>
 
            <!--Panorama item two-->
            <!--Use 'Orientation="Horizontal"' to enable a panel that lays out horizontally-->
            <controls:PanoramaItem Header="favourites">
                <StackPanel Margin="0,0,0,0">
                    <ListBox Name="lstBoxFavs" Height="426" SelectionChanged="lstBoxFavs_SelectionChanged" />
                </StackPanel>
            </controls:PanoramaItem>

            <!--Panorama item three-->
            <controls:PanoramaItem Header="about">
                <!--Double line list with image placeholder and text wrapping-->
                <StackPanel>
                    <TextBlock Name="txtVersion" Text="App Version: 1.0.0.0" FontSize="36"/>
                    <TextBlock Name="txtTeam" Text="Team KeyDoor:" FontSize="36"/>
                    <TextBlock Name="txtTeam1" Text="@alexerex" Foreground="#FFC7C7C7" FontSize="32" Width="340" MouseLeftButtonUp="txtTeam1_MouseLeftButtonUp" />
                    <TextBlock Name="txtTeam2" Text="@dylanmaryk" Foreground="#FFC7C7C7" FontSize="32" Width="340" MouseLeftButtonUp="txtTeam2_MouseLeftButtonUp" />
                    <TextBlock Name="txtTeam3" Text="@mussics" Foreground="#FFC7C7C7" FontSize="32" Width="340" MouseLeftButtonUp="txtTeam3_MouseLeftButtonUp" />
                    <TextBlock Name="txtTeam4" Text="@phazonoverload" Foreground="#FFC7C7C7" FontSize="32" Width="340" MouseLeftButtonUp="txtTeam4_MouseLeftButtonUp" />
                    <TextBlock Name="txtTeam5" Text="@pixelk" Foreground="#FFC7C7C7" FontSize="32" Width="340" MouseLeftButtonUp="txtTeam5_MouseLeftButtonUp" />
                    <Button Name="btnReportBug" Content="Report bug" Click="btnReportBug_Click" Width="Auto" />
                    <Button Name="btnSettings" Content="Settings" Click="btnSettings_Click" />
                </StackPanel>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>
 
    <!--Panorama-based applications should not show an ApplicationBar-->

</phone:PhoneApplicationPage>